package com.example.protocol;

import androidx.annotation.IntDef;
import androidx.annotation.Keep;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

@Keep
@Retention(RetentionPolicy.SOURCE)
@IntDef({ActCode.ACT_CON_STATUS,
        ActCode.ACT_01,
        ActCode.ACT_02,
        ActCode.ACT_03,
        ActCode.ACT_04,
        ActCode.ACT_05,
        ActCode.ACT_06})
public @interface ActCode {
    int ACT_CON_STATUS = 0x38;  // disconnect
    int ACT_01 = 0x01;    //上传姿态角
    int ACT_02 = 0x02;    //上传四元数
    int ACT_03 = 0x03;    //上传陀螺仪和加速度计数据
    int ACT_04 = 0x04;    //上传磁力计数据
    int ACT_05 = 0x05;    //上传气压计数据
    int ACT_06 = 0x06;    //上传端口状态数据

}
